//
//  FZCommonTool.h
//  EnglishTalk
//
//  Created by huyanming on 15/6/6.
//  Copyright (c) 2015年 Feizhu Tech. All rights reserved.
//

#import <Foundation/Foundation.h>

//#import <ASIdentifierManager.h>

typedef void(^FZBindCellPhoneSuccessBlock)();

@interface FZCommonTool : NSObject

+(double) LantitudeLongitudeDist:(double)lon1 other_Lat:(double)lat1 self_Lon:(double)lon2 self_Lat:(double)lat2;

+ (NSString *)IDFAString;

/**
 *  绑定手机号码
 *  @param navigationController
 *  @param successBlock 绑定成功回调
 *  @param title 提示信息
 *  @param canleText
 *  @param okText
 */
+(void)bindCellPhoneWithSuccessBlock:(FZBindCellPhoneSuccessBlock)successBlock
                navigationController:(UINavigationController*)navigationController
                               title:(NSString*)title
                          cancleText:(NSString*)canleText
                              okText:(NSString*)okText;

+(long long)freeSpace;

+(float)getTotalDiskSpaceInBytes;

+ (NSString *)getNoPrefixUserID:(NSString *)userID;

+ (NSString *)addPrefixForUserID:(NSString *)userID prefix:(NSString *)prefix;

+ (CGRect)getRectwithString:(NSString *)string withFont:(CGFloat)font withWidth:(CGFloat)width;//Label的Rect

/**
 *  将时间格式化为(刚刚 几分钟前  几小时前 昨天HH:mm  YYMMDDHH:mm YYMMDD)
 *
 *  @param originTimeSince1970
 *
 *  @return
 */
+ (NSString *)dateToDetailDisplayStringForTimeInterval:(NSInteger)originTimeSince1970;

@end
